from . import api
from ..models import User
from .llm import llm_bp
from flask import jsonify

# 注册 LLM 蓝图，添加 url_prefix
api.register_blueprint(llm_bp, url_prefix='/llm')

@api.route('/')
def hello():
    return jsonify({
        "status": "ok",
        "message": "Welcome to API Service",
        "version": "1.0.0",
        "endpoints": {
            "llm": {
                "generate": "/api/llm/generate",
                "chat": "/api/llm/chat"
            }
        }
    })

# 在这里可以添加更多的 API 路由 